/**
 * ISWE.
 * Created on : 16/07/2009
 *
 * Copyright (c) 2009 ISWE.
 * Rafael Noronha de Almeida
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of Rafael Noronha de Almeida
 * ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Rafael.
 */
package br.com.iswe.recipemaster.entities.supplier;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import br.com.iswe.core.entidades.annotation.GeradorConfig;
import br.com.iswe.core.entidades.annotation.SecurityStrategyType;
import br.com.iswe.recipemaster.entities.BaseEntity;
import br.com.iswe.recipemaster.entities.core.Product;
import br.com.iswe.recipemaster.entities.core.UnitType;

import com.google.appengine.api.datastore.Key;

/**
 *
 * Description: 
 *
 * @author Rafael Noronha de Almeida
 *
 * @version $Revision: 1.1 $ $Date: 2009/07/20 12:04:33 $
 *
 */
@Entity
@GeradorConfig(securityStrategy = SecurityStrategyType.ACEGI_ISWE_INTEGRATION)
public class PriceItem extends BaseEntity {

	private Key 	   priceItemId;
	private double 	   price;
	private UnitType   unitType;
	private double     amountUnit;
	private Product    product;
	
	private PriceList priceList;

	/**
	 * @return the priceItemId
	 */
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	public Key getPriceItemId() {
		return priceItemId;
	}
	public void setPriceItemId(Key priceItemId) {
		this.priceItemId = priceItemId;
	}
	
	/**
	 * @return the priceList
	 */
	@ManyToOne
	public PriceList getPriceList() {
		return priceList;
	}
	public void setPriceList(PriceList priceList) {
		this.priceList = priceList;
	}
	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}
	/**
	 * @return the unitType
	 */
	public UnitType getUnitType() {
		return unitType;
	}
	/**
	 * @param unitType the unitType to set
	 */
	public void setUnitType(UnitType unitType) {
		this.unitType = unitType;
	}
	/**
	 * @return the amountUnit
	 */
	public double getAmountUnit() {
		return amountUnit;
	}
	/**
	 * @param amountUnit the amountUnit to set
	 */
	public void setAmountUnit(double amountUnit) {
		this.amountUnit = amountUnit;
	}
	/**
	 * @return the product
	 */
	public Product getProduct() {
		return product;
	}
	/**
	 * @param product the product to set
	 */
	public void setProduct(Product product) {
		this.product = product;
	}
	
	
}
